import 'package:flutter/material.dart';
import 'package:flutter_cached_pdfview/flutter_cached_pdfview.dart';

class PdfCacheView extends StatelessWidget {
  final String fileUrl;

  const PdfCacheView({super.key, required this.fileUrl});

  @override
  Widget build(BuildContext context) {
    return const PDF(
      swipeHorizontal: true,
    ).cachedFromUrl(
      fileUrl,
    );
  }
}
